from flask import Flask
from flask_script import Manager

app = Flask(__name__)

manage = Manager(app)


@manage.command
def custom(arg):
    print("arg", arg)


@manage.option("-n", "--name", dest="name")
@manage.option("-u", "--url", dest="url")
def cmd(name, url):
    print(name, url)



if __name__ == "__main__":
    manage.run()